package com.test.ps;

import java.util.List;

public class Consumer {

	public static void main(String[] args) {
		while(true) {
			try {
				Thread.sleep(2000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			new Thread(() -> {
				List<Integer> list = DataBean.getList();
				System.out.println(list);
			}).start();
		}

	}

}
